package be.novelfaces.showcase.webdriver.pages.input;

import be.novelfaces.component.webdriver.InputText;
import be.novelfaces.component.webdriver.SourcePanel;
import be.novelfaces.showcase.webdriver.util.NFBy;
import be.novelfaces.webdriver.component.primefaces.TabContent;

public class Example1TabContent extends TabContent {

	private InputText inputText;
	private SourcePanel xhtmlPanel;
	private SourcePanel beanPanel;

	public InputText getInputText() {
		return inputText;
	}
	
	public SourcePanel getXhtmlPanel() {
		return xhtmlPanel;
	}
	
	public SourcePanel getBeanPanel() {
		return beanPanel;
	}
	
	public boolean isButtonPresent() {
		return isElementPresent(NFBy.mainFormId("button"));
	}

	@Override
	public void init() {
		inputText = new InputText(NFBy.mainFormId("inputText"));
		xhtmlPanel = new SourcePanel(NFBy.MAIN_FORM +"example1XhtmlPanel");
		beanPanel = new SourcePanel(NFBy.MAIN_FORM +"example1BeanPanel");
	}
}
